<template>
  <view class="loading-container"
        v-if="isShow">
    <view class="loading-container-content">
      <view>
        <image src="http://www.huangjinya.top/xcx/load.gif"></image>
        <view>
          数据加载中......
        </view>
      </view>
    </view>
  </view>
</template>

<script>
export default {
  data () {
    return {
      isShow: true
    }
  },

  methods: {
    close () {
      this.isShow = false
    },
  }
}
</script>

<style lang="scss" scoped>
.loading-container {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background-color: #fff;
  text-align: center;
  color: $uni-text-color-grey;
  font-size: 24upx;
  .loading-container-content {
    justify-content: center;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    image {
      width: 300upx;
      height: 300upx;
    }
  }
}
</style>